package com.s4j.struts.biz.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="biz_li_mmgyz")
public class BizLiMmgyz {
	private Long mmgyzId;	
	private PatientDoc patient;
	
	private Operationdoc operation;
	private String operatetime;
	private String fzy;
	private String lx;
	
	private Drugdoc drug;
	private String fyjl;
	private String yyqzsj;
	private String zdjl;
	private String tyyy;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getMmgyzId() {
		return mmgyzId;
	}
	public void setMmgyzId(Long mmgyzId) {
		this.mmgyzId = mmgyzId;
	}
	
	@OneToOne  
    @JoinColumn(name="patientId",insertable=true)
	public PatientDoc getPatient() {
		return patient;
	}
	public void setPatient(PatientDoc patient) {
		this.patient = patient;
	}
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="operationId")
	public Operationdoc getOperation() {
		return operation;
	}
	public void setOperation(Operationdoc operation) {
		this.operation = operation;
	}
	public String getOperatetime() {
		return operatetime;
	}
	public void setOperatetime(String operatetime) {
		this.operatetime = operatetime;
	}
	public String getFzy() {
		return fzy;
	}
	public void setFzy(String fzy) {
		this.fzy = fzy;
	}
	public String getLx() {
		return lx;
	}
	public void setLx(String lx) {
		this.lx = lx;
	}
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="drugId")
	public Drugdoc getDrug() {
		return drug;
	}
	public void setDrug(Drugdoc drug) {
		this.drug = drug;
	}
	public String getFyjl() {
		return fyjl;
	}
	public void setFyjl(String fyjl) {
		this.fyjl = fyjl;
	}
	public String getYyqzsj() {
		return yyqzsj;
	}
	public void setYyqzsj(String yyqzsj) {
		this.yyqzsj = yyqzsj;
	}
	public String getZdjl() {
		return zdjl;
	}
	public void setZdjl(String zdjl) {
		this.zdjl = zdjl;
	}
	public String getTyyy() {
		return tyyy;
	}
	public void setTyyy(String tyyy) {
		this.tyyy = tyyy;
	}
	
	

}
